package com.acme.domain.bank;

import java.io.Serializable;
import java.util.Arrays;

public class Bank implements Serializable {

	private static final long serialVersionUID = 1L;
	private final Client[] clients = new Client[10];
	private int maxClients = 0;
	
	public Client addClient(final Client client) {
		clients[maxClients++] = client;
		return client;
	}

	@Override
	public String toString() {
		String temp = "Bank print: \n";
		for (Client client : clients) {
			if (client==null) break;
			temp += client.toString()+"\n"; 
		}
		return temp;
	}
	
	

}
